Skip to content

Fix Email module Badge variants to match component API#82

Merged
antosubash merged 6 commits intomainfrom
claude/fix-email-module-pages-jZ4bC
Apr 5, 2026
Merged

Fix Email module Badge variants to match component API#82
antosubash merged 6 commits intomainfrom
claude/fix-email-module-pages-jZ4bC

Conversation

@antosubash
Copy link
Copy Markdown
Owner

The Badge component supports 'default', 'success', 'danger', 'warning',
and 'info' variants. The Email Dashboard and History pages were using
non-existent variants ('destructive', 'secondary', 'outline') causing
the badges to render without proper styling.

claude and others added 5 commits April 5, 2026 12:44
The Badge component supports 'default', 'success', 'danger', 'warning',
and 'info' variants. The Email Dashboard and History pages were using
non-existent variants ('destructive', 'secondary', 'outline') causing
the badges to render without proper styling.
The project had tsconfig.json with strict mode but never ran tsc,
allowing invalid component prop types to slip through (like the
Email module's Badge variant bug).

Changes:
- Add tools/typecheck.mjs that runs tsc --noEmit per module
- Add "typecheck" script to package.json check pipeline
- Fix SharedProps missing index signature for Inertia PageProps
- Fix Badge variant mismatches in RateLimiting and Email modules
- Fix Button variant 'destructive' -> 'danger' in Users module
- Fix number-to-string type mismatches across multiple modules
- Fix string|undefined -> string assignments in Products/Tenants
- Add CSS module declaration to PageBuilder tsconfig
Break the single `npm run check` into separate steps: biome lint,
pages validation, i18n validation, and TypeScript type check.
Each step fails fast independently, and since build/e2e depend on
the lint job, type errors now block the entire pipeline.
- Run tsc checks in parallel via Promise.all instead of sequentially
- Resolve tsc binary directly instead of spawning npx on each invocation
- Move Record<string, unknown> from SharedProps interface to usePage<>
  call sites, preserving type safety on the exported interface
- Replace magic depth parameter with descriptive 'flat'/'nested' layout
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 5, 2026

Deploying simplemodule-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: ecfe1f5
Status: ✅  Deploy successful!
Preview URL: https://2e596dca.simplemodule-website.pages.dev
Branch Preview URL: https://claude-fix-email-module-page.simplemodule-website.pages.dev

View logs

@antosubash antosubash merged commit 1f4ef27 into main Apr 5, 2026
4 checks passed
@antosubash antosubash deleted the claude/fix-email-module-pages-jZ4bC branch April 5, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants